import Vue from "vue";
import App from "./App.vue";
import Vuex from "vuex";

Vue.config.productionTip = false;

Vue.use(Vuex);
// 配值全局的指令
Vue.directive('beauty',function(element,{value}){
  element.innerText=value,
  element.style.color='red',
  element.style.backgroundColor='yellow',
  element.style.border='5px solid red'
})

let vm = new Vue({
  el: "#app",
  beforeCreate() {
    Vue.prototype.$bus = this
  },
  render: (h) => h(App),
  store: new Vuex.Store({
    actions: {},
    mutations: {},
    state: {},
  }),
});
// console.log(vm);
